﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows;
using Microsoft.VisualBasic;
using WiseLink.RDS.Resource;

namespace CCF20Model
{
    public static partial class Utility
    {
        static string defaultTitle = Message.MessageBoxTitle;
        public static bool ShowConfirmation(string message)
        {
            MessageBoxResult confirmResult = MessageBoxResult.No;

            confirmResult = MessageBox.Show(message, defaultTitle, MessageBoxButton.YesNo);

            if (confirmResult == MessageBoxResult.Yes)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
        public static void ShowMessageBox(string message)
        {
            MessageBox.Show(message, defaultTitle, MessageBoxButton.OK);
        }
        public static void ShowMessageBox(string message,string title, MessageBoxButton button)
        {
            MessageBox.Show(message, title, button);
        }
        public static string ShowInputBox(string message)
        {
            return Interaction.InputBox(message, defaultTitle);
        }
    }
}
